package system

import "mycms/global"

// @title	后台角色表
type Role struct {
	global.Model
	Name     string `json:"name" form:"name" binding:"required" gorm:"not null; comment:角色名称"`
	Code     string `json:"code" form:"code" binding:"required" gorm:"not null; comment:角色标签"`
	Status   uint   `json:"status" form:"status" binding:"required" gorm:"type:tinyint; size:1; default:1; not null; comment:状态：1、正常, 2、禁用"`
	Remark   string `json:"remark" form:"remark" gorm:"comment:备注"`
	RoleMenu []*RoleMenu `gorm:"foreignKey:RoleId"`
}
